﻿/********************************************************************************/
// <copyright file="INewsRepository.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
// <history>
//     <change who="Phuoc Le" date="21/12/2012 5:58:44 PM">Created</change>
// </history>
/********************************************************************************/

using System.Collections.Generic;
using JLL.China.Infrastructure.RepositoryFramework;
using JLL.China.Model.DTO;

namespace JLL.China.Infrastructure.Repositories.News
{
    public interface INewsRepository : IRepository<Model.News, int>
    {
        IList<Model.News> FindByNewsCategory(int ID);
        IList<Model.News> Search(NewsSearchCriteria searchCriteria);
        int Store(Model.News item);
        void ChangeStatus(string arrIds, bool status);
        void RemoveSelected(string arrIds);

        Model.News FindByID_Language(decimal? id, decimal languageId);

        decimal CreateNews(Model.News news);
        Model.News FindById(decimal? Id);
        decimal UpdateNews(Model.News news);
        decimal DeleteNews(decimal? newsId);
        System.Data.Linq.Binary GetThumbnail(decimal newsId);
    }
}
